package com.weilf.zuul.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weil-f
 * @date 2021/3/1022:37
 */
@RestController
public class TestController {
    @Value("${server.port}")
    private Integer port;

    @GetMapping("test")
    public Integer test(){
        System.out.println("我的端口号是"+port);
        return port;
    }

}
